package com.ybl.store.common.constant;

import com.ybl.store.backend.dto.UserInfoDTO;

/**
 * 管理员身份常量
 */
public final class UserIdentity {

    public static final Integer admin = 0;

    public static final Integer manager = 1;

    public static final Integer clerk = 2;

    public static boolean authentication(UserInfoDTO userInfoDTO, Integer auth) {
        return userInfoDTO != null && userInfoDTO.getIdentity() <= auth;
    }
}
